#include <iostream>
#include <fstream>
#include <string>
#include "global_defination/global_defination.h"

int main() {

    std::ifstream infile(WORK_SPACE_PATH + "/csv_test/csv/20250805_115914_filter.csv");
    std::ofstream outfile(WORK_SPACE_PATH + "/csv_test/csv/20250805_115914_trunc.csv");
    std::string line;
    int line_count = 0;
    while (std::getline(infile, line)) {
        if (line_count == 0) {
            outfile << line << "\n";
        }
        if (line_count > 0 && line_count < 183200) {
            outfile << line << "\n";
        }

        ++line_count;
    }
    infile.close();
    outfile.close();
    return 0;
}
